<template>
  <div>
    <div class="ranking">
      <div class="cont1">
        <div class="search">
          <img src="../../assets/images/mkf/search.png" @click="submit" />
          <input
            type="text"
            placeholder="搜索社群名称、6位数社群ID"
            v-model="search"
          />
        </div>
        <div class="btn" @click="$router.go(-1)">取消</div>
      </div>
      <div class="mlist">
        <div class="item">
          <div class="wrap">
            <img class="img" src="../../assets/images/adver.jpg" />
            <div class="cont">
              <div class="top">
                <span class="name"
                  ><span class="yellow">蚂蚁金服</span>麻小云</span
                >
                <span class="small">111111</span>
              </div>
              <div class="middle">每一个认真生活的人，都值得被认真对待</div>
              <div class="bottom">
                <img src="../../assets/images/adver.jpg" />
                <span>麻小云</span>
              </div>
            </div>
          </div>
        </div>
        <div class="item">
          <div class="wrap">
            <img class="img" src="../../assets/images/adver.jpg" />
            <div class="cont">
              <div class="top">
                <span class="name"><span class="yellow">蚂蚁金服</span></span>
                <span class="small">111111</span>
              </div>
              <div class="middle">每一个认真生活的人，都值得被认真对待</div>
              <div class="bottom">
                <img src="../../assets/images/adver.jpg" />
                <span>麻小云</span>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { trim } from "@utils";
export default {
  name: "Search",
  components: {},
  data: function() {
    return {
      search: ""
    };
  },
  mounted: function() {},
  methods: {
    submit() {
      const search = trim(this.search) || "";
      if (!search) return;
      console.log("search");
      // this.$dialog.toast({ mes: "该社群ID不存在" });
    }
  }
};
</script>
<style scoped>
.ranking {
  background-color: #2a2631;
  padding-top: 0.88rem;
}
.ranking .cont1 {
  height: 0.88rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 0.08rem;
}
.ranking .search {
  width: 6.1rem;
  margin: 0 0 0 0.2rem;
}
.ranking .search input {
  width: 100%;
}
.ranking .search input::-webkit-input-placeholder {
  color: #999999;
}
.ranking .btn {
  padding: 0 0.2rem;
  font-size: 0.32rem;
  color: #999999;
  line-height: 0.64rem;
}
.mlist {
  padding: 0.3rem 0;
}
</style>
